<script setup lang="ts">
defineProps({
  title: {
    type: String,
    default: '总台技术局新媒体技术大练兵'
  }
})
const goBackFn = () => {
  history.back()
}
</script>
<template>
  <div class="cpNavBar">
    <div class="goback" @click="goBackFn">
      <van-icon name="arrow-left" />
    </div>
    <div class="title">{{ title }}</div>
  </div>
</template>
<style lang="scss" scoped>
.cpNavBar {
  position: fixed;
  top: 0;
  left: 0;
  width: 750px;
  height: 88px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  .goback {
    width: 44px;
    height: 44px;
    line-height: 44px;
    margin-left: 24px;
    font-size: 44px;
  }
  .title {
    flex: 1;
    font-family:
      PingFangSC,
      PingFang SC;
    font-size: 36px;
    color: #333333;
    text-align: center;
  }
}
</style>
